package com.ibo.ndemo;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;
import android.widget.TextView;

/**
 * Created by qibin on 16-10-20.
 */

public class ShortCutMessageActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.message);

        ImageView image = (ImageView) findViewById(R.id.icon);
        TextView msg = (TextView) findViewById(R.id.msg);

        Intent intent = getIntent();
        msg.setText(intent.getStringExtra("name"));
        image.setImageResource(intent.getIntExtra("pick",R.mipmap.user_1));

    }
}
